home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / Libraries / VideoToolbox 95.04.18 / VideoToolboxSources / VideoToolboxMATLAB.c < prev    next >
Text File  |  1994-10-24  |  2KB  |  46 lines

  1. /*
  2. VideoToolboxMATLAB.c
  3. Use this file to ask THINK C to precompile the VideoToolbox.h header with the
  4. MATLAB option enabled to create "VideoToolboxMATLAB.pre". (To create plain old
  5. VideoToolbox.pre, use VideoToolbox.c instead of this file.) Enabling the MATLAB
  6. option is only useful if you're creating MATLAB code resources, i.e. subroutines
  7. for the MATLAB program.
  8.  
  9. INSTRUCTIONS:
  10. While you have this file open, select Precompile from THINK C’s Source menu.
  11. Save the result as “VideoToolboxMATLAB.pre” in the VideoToolboxSources folder or in
  12. your project's folder (or any subfolder within it). For each suitable project,
  13. type the line
  14.  
  15. #include "VideoToolboxMATLAB.pre"
  16.  
  17. into the Edit:Options:THINK C:Prefix window. 
  18.  
  19. WARNINGS:
  20. VideoToolboxMATLAB.pre is only appropriate for THINK C projects that are used to
  21. build external code resources, i.e. "MEX" subroutines, for MATLAB. No one has
  22. yet tried using Metrowerks CodeWarrior C to build MEX stuff. It probably will
  23. take quite a bit of tweaking before it works correctly.
  24.  
  25. Precompilation ignores the contents of the THINK C Prefix window.
  26.  
  27. Unfortunately THINK C doesn't check whether a precompiled header is out of date.
  28. If you update any of the THINK C, Standard C, or VideoToolbox.h headers, then you
  29. should recreate the precompiled header. Also, the precompiled header will
  30. reflect the compiler and language settings in effect at the time of
  31. precompilation (e.g. size of int and double), so if you have different projects
  32. with different settings then you may need various versions of the precompiled
  33. header. I don’t know which compiler settings matter; the THINK C manual doesn’t
  34. say. If in doubt, recompile the header.
  35.  
  36. You can add this file to your project. It won't generate any code or affect your
  37. project in any way. It merely keeps this file handy.
  38.  
  39. HISTORY:
  40. 9/15/93    dgp    Wrote it, based on VIdeoToolbox.c.
  41. */
  42. #ifndef MATLAB
  43.     #define MATLAB 1
  44. #endif
  45. #include "VideoToolbox.h"
  46.